//
//  GCMenuBaGuaAttentionTableViewCell.m
//  GoldChampion
//
//  Created by Mac on 2018/4/12.
//  Copyright © 2018年 stoneobs@icloud.com. All rights reserved.
//

#import "GCMenuBaGuaAttentionTableViewCell.h"

@interface  GCMenuBaGuaAttentionTableViewCell()
@property(nonatomic, strong) STButton                     *iconButton;
@property(nonatomic, strong) STLabel                     *nameLable;

@end
@implementation GCMenuBaGuaAttentionTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self configSubView];
    }
    return self;
}
+ (CGFloat)cellHeight{
    return 65;
}
#pragma mark --subView
- (void)configSubView{
    self.iconButton = [[STButton alloc] initWithFrame:CGRectMake(15, 10, 36, 36)
                                                title:nil
                                           titleColor:nil
                                            titleFont:0
                                         cornerRadius:18
                                      backgroundColor:nil
                                      backgroundImage:nil
                                                image:[UIImage imageNamed:@"yanjing"]];
    [self addSubview:self.iconButton];
    self.iconButton.centerY = [[self class] cellHeight]/2;
    
    self.nameLable = [[STLabel alloc] initWithFrame:CGRectMake(self.iconButton.right  +15, 10, UIScreenWidth- 30 - self.iconButton.right, [[self class] cellHeight] - 20)
                                               text:@"大佬 关注了反省，玩着荣耀，阿卡丽，陌上花开，等...15天前"
                                          textColor:SecendTextColor
                                               font:15
                                        isSizetoFit:NO
                                      textAlignment:NSTextAlignmentLeft];
    self.nameLable.attributedText = [self.nameLable.text st_convertAttributeStringWithKeyWord:@"关注了" attributes:@{NSForegroundColorAttributeName:ThirdTextColor}];
    [self addSubview:self.nameLable];
}

@end
